﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace HY.Entity
{
    /// <summary>
    /// 库位实体
    /// </summary>
    public class Location : EntityBaseModel
    {
        [Required]
        [StringLength(20)]
        /// <summary>
        /// 库位编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 所属园区ID
        /// </summary>
        [Required]
        public int ParkID { get; set; }
        /// <summary>
        /// 所属仓库ID
        /// </summary>
        [Required]
        public int StorehouseID { get; set; }
        /// <summary>
        /// 库位类型ID
        /// </summary>
        public int LocationTypeID { get; set; }
        /// <summary>
        /// 库位面积
        /// </summary>
        public decimal? Area { get; set; }
        /// <summary>
        /// 高度
        /// </summary>
        public decimal? Height { get; set; }
        /// <summary>
        /// 长度
        /// </summary>
        public decimal? Length { get; set; }
        /// <summary>
        /// 宽度
        /// </summary>
        public decimal? Width { get; set; }
        /// <summary>
        /// 库位描述
        /// </summary>
        [StringLength(500)]
        public string Description { get; set; }
        /// <summary>
        /// 是否已被租赁
        /// </summary>
        public bool IsRented { get; set; }
        /// <summary>
        /// 租赁单位ID
        /// </summary>
        public int RentDeptID { get; set; }
    }
}